package io;

import java.io.*;

public class OisDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream SIS=new FileInputStream("studen.txt");
        ObjectInputStream sis=new ObjectInputStream(SIS);
        Object de=sis.readObject();
        Student zs=(Student) de;
        System.out.println(zs);
        sis.close();
    }
}
